/*
 * @Author: Komens
 * @Date: 2021-08-18 10:29:05
 * @LastEditTime: 2021-08-18 13:50:37
 * @LastEditors: Komens
 */
try {
  const electron = window.require('electron');
  const { ipcRenderer } = electron;

  document.addEventListener('contextmenu', function (e) {
    // 右键事件触发
    e.preventDefault();

    ipcRenderer.send('contextMenu');
  });

  ipcRenderer.on('msg', (msg) => {
    console.log(msg);
  });
} catch {}
